﻿#include "CItemResultSensor.h"

CItemResultSensor::CItemResultSensor()
{
	m_dValue = 0;
	m_sDataDesc = "";
	m_nState = -10;//未执行
}

CItemResultSensor::~CItemResultSensor()
{
}

void CItemResultSensor::copyData(CItemResultBase* pItemResult)
{
	//新增pdf报表需要的一些内容
	CItemResultSensor *pData = (CItemResultSensor*)pItemResult;
	pData->m_sItemResultGuid = m_sItemResultGuid;
	pData->m_sPolAreaGuid = m_sPolAreaGuid;
	pData->m_sPointGuid = m_sPointGuid;
	pData->m_sItemGuid = m_sItemGuid;
	pData->m_sTaskGuid = m_sTaskGuid;
	pData->m_sTemplateGuid = m_sTemplateGuid;
	pData->m_sStartTime = m_sStartTime;
	pData->m_sTaskName = m_sTaskName;
	pData->m_sPointName = m_sPointName;
	pData->m_sItemName = m_sItemName;
	pData->m_sGuid = m_sGuid;
	pData->m_sDataThreadHoldHH = m_sDataThreadHoldHH;     //数字阈值--高高报警
	pData->m_sDataThreadHoldLL = m_sDataThreadHoldLL;     //数字阈值--低低报警
	pData->m_sDataThreadHoldH = m_sDataThreadHoldH;      //数字阈值--高报警
	pData->m_sDataThreadHoldL = m_sDataThreadHoldL;      //数字阈值--低报警
	pData->m_sTaskExecGuid = m_sTaskExecGuid;
	pData->m_nDevType = m_nDevType;
	pData->m_nCheckType = m_nCheckType;
	pData->m_nDevTypeCode = m_nDevTypeCode;
	pData->m_nBelong = m_nBelong;
	pData->m_dActionTime = m_dActionTime;
	pData->m_nAlarmLevel = m_nAlarmLevel;
	pData->m_nState = m_nState;
	pData->m_dValue = m_dValue;
	pData->m_sDataDesc = m_sDataDesc;
	pData->m_dRealLocation = m_dRealLocation;
	pData->m_nRollerNum = m_nRollerNum;
	pData->m_sRollerDesc = m_sRollerDesc;
	pData->m_bIsShow = m_bIsShow;
}
